import {Map,List} from 'immutable';

export default (state = Map(), action) => {
  
  if (action.type === 'exam_list') {
    state = state.clear();
    return state.merge({
      examlist : List(action.info)
    })
  }

  if (action.type === 'user_list') {
    // state = state.clear('userlist');
    return state.merge({
      userlist : List(action.info)
    })
  }

  return state;
};